<style lang="scss" scoped>
.common_search_wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px 0;
  .search_btns {
    position: relative;
    top: -10px;
  }
}
</style>

<template>
  <div class="common_search_wrap">
    <div class="search_options">
      <slot/>
    </div>
    <div class="search_btns">
      <el-button @click="handleSearch" round type="primary">查询</el-button>
      <el-button @click="handleReset" round type="primary">重置</el-button>
    </div>
  </div>
</template>

<script setup>
  import { ref } from 'vue'
  const emits = defineEmits(['search', 'reset'])
  // 搜索
  const handleSearch = () => {
    emits('search')
  };
  // 重置
  const handleReset = () => {
    emits('reset')
  };
</script>